#############################
# Molyx Movie System װʹ˵
# ڰװǰϸ鿴˵
#############################

1. ϵͳ
    ϵͳ: Windows, *nix, FREEBSD
    绷: Apache, IISȱ׼绷
    ݿ: MySQL
    ű: PHP

2. װ Molyx Movie System
    ȷѳɹװMolyx Board ϵͳ
    ϴ uploads Ŀ¼ڵȫļ̳Ŀ¼
    ȷļϴȷϴϺַ
    " ļİװURLַ/install/install_movie.php "װ
    Ϊȷȫڵһ̳Ĺʺŵ¼֮ʾ
    ϵͳװ
    װɾ install Ŀ¼Աϳʹðȫ

3. ¼̨
    ĬϺ̨Ϊ admin Ŀ¼ݰװĹԱ˺ź
    ¼ϵͳ̨ڰװ̳Ŀ¼趨
    ¼Լ趨Ŀ¼

4. ϵͳ
    ڵһʹУں̨ؽȫ񻺴棡˵ǳҪ
    ̨ͨ½ǵллӰϵͳĺ̨á
    ʱͿԼ趨Ӱĵĸá

5. ¼ǰ̨
    ӰĬǰַ̨Ϊ ̳URLַ/movie/Ŀ¼ͨ˵ַ
    鿴Ӱĵǰ̨档
    ͬʱ̳ͨģ棬Ӱĵӡ
    
6. ʹò
    йʹùгֵذǵĵ
    http://www.molyx.cn/index.php/%E9%AD%94%E5%8A%9B%E5%BD%B1%E9%9F%B3%E7%B3%BB%E7%BB%9F%EF%BC%88MolyX_Movie_System%EF%BC%89%E7%AE%A1%E7%90%86%E5%91%98%E4%BD%BF%E7%94%A8%E6%89%8B%E5%86%8C

7. register.php ޸Ƽˣ
 򿪸Ŀ¼µ register.php ļĴ룺
$user['id'] = $DB->insert_id();
 һӴ룺
/*
* @Ƽϵͳӹģ
* @ firefox | email: cnvbb@msn.com
*/
		$referid = intval($forums->func->get_cookie('referid'));
		$refertype = intval($forums->func->get_cookie('refertype'));
		if ($referid) {
			$r = $DB->query_first("SELECT id FROM ".TABLE_PREFIX."user WHERE id={$referid}");
			if ($r['id']) {
				$addquery[] = "refers=refers+1";
				if ($refertype='movie') {
					$setting = $DB->query_first( "SELECT * FROM ".TABLE_PREFIX."movie_setting where title='system'");
					$cache = unserialize($setting['data']);
					if ($cache['system']['newuserwin']) {
						list($newcash, $newpoint, $newmoney) = explode("|", $this->cache['system']['newuserwin']);
						$newcash = intval($newcash);
						$newpoint = intval($newpoint);
						$newmoney = intval($newmoney);
					}
					if ($newcash) {
						$addquery[] = "cash=cash+{$newcash}";
					}
					if ($newpoint) {
						$addquery[] = "paypoints=paypoints+{$newpoint}";
					}
					if ($newmoney) {
						$addquery[] = "paymoney=paymoney+{$newmoney}";
					}
				}
				$DB->shutdown_query("INSERT INTO ".TABLE_PREFIX."refer (userid, referid) VALUES ({$user['id']}, {$referid})");
				$DB->shutdown_query("UPDATE ".TABLE_PREFIX."user SET ".implode(", ", $addquery)." WHERE id={$referid}");		
			}
		}
/*
* @Ƽϵͳӹģ
*/

 ޸ĺĴϴĿ¼ڡ



    
    ʹùг⣬ www.molyx.com ؽ

========================
Molyx System, MolyX Studios 翪С
֧վ: http://www.molyx.com, http://www.cnvbb.com
Molyx ʾվ: http://www.joyj.com (ֲ)
2006-01


˵ļ: 2005-06-10
˵ļ汾: 1.0